import requests from "@/utils/request";

// 获取商品详情  /goods  get
export const getDetail = (id) => requests({ url: `/medicine/${id}`, method: 'get' });

export const getCategoryGoods = (id) => requests({ url: `/medicine/getByCategory/${id}`, method: 'get' });

//获取搜索商品
export const getSearchGoods = (value) => requests({ url: `/medicine/search/${value}`, method: 'get' }); 
